package com.jlcindia.spring;

import java.util.*;

public class Customer {
	private int cid;
	private String cname;
	private String email;
	private Long phone;
	private List<String> emails;
	private Set<Long> phones;
	private Map<String, Long> refs;
	private Properties myprops;
	private Address address;
	private List<Account> accounts;
	public Customer(int cid, String cname, String email, Long phone) {
		System.out.println("Constructor: Customer(cid, cname, email, phone)");
		this.cid = cid;
		this.cname = cname;
		this.email = email;
		this.phone = phone;
	}
	public int getCid() {
		return cid;
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	public String getCname() {
		return cname;
	}
	public void setCname(String cname) {
		this.cname = cname;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Long getPhone() {
		return phone;
	}
	public void setPhone(Long phone) {
		this.phone = phone;
	}
	public List<String> getEmails() {
		return emails;
	}
	public void setEmails(List<String> emails) {
		this.emails = emails;
	}
	public Set<Long> getPhones() {
		return phones;
	}
	public void setPhones(Set<Long> phones) {
		this.phones = phones;
	}
	public Map<String, Long> getRefs() {
		return refs;
	}
	public void setRefs(Map<String, Long> refs) {
		this.refs = refs;
	}
	public Properties getMyprops() {
		return myprops;
	}
	public void setMyprops(Properties myprops) {
		this.myprops = myprops;
	}
	public Address getAddress() {
		return address;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
	public List<Account> getAccounts() {
		return accounts;
	}
	public void setAccounts(List<Account> accounts) {
		this.accounts = accounts;
	}
	public void show() {
		System.out.println("Cid:     \t"+cid);
		System.out.println("Cname:   \t"+cname);
		System.out.println("Email:   \t"+email);
		System.out.println("Phone:   \t"+phone);
		System.out.println("Emails: \t"+emails);
		System.out.println("Phones: \t"+phones);
		System.out.println("Refs:   \t"+refs);
		System.out.println("MyProps: \t"+myprops);
		System.out.println("Address: \t"+address);
		System.out.println("Accounts:\t-------------------------------------------");
		for(Account acc:accounts){
			System.out.println("\t\t"+acc);
		}
		System.out.println("\t\t-------------------------------------------");
		System.out.println("Email Class: \t"+emails.getClass().getName());
		System.out.println("Phones Class: \t"+phones.getClass().getName());
		System.out.println("Refs Class: \t"+refs.getClass().getName());
		System.out.println("Myprops Class: \t"+myprops.getClass().getName());
	}
}
